import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    userInfo:{}
  },
  mutations: {
    increment (state, payload) {
      state.getList = {...payload.getList}
    },
    changeCode (state, payload) {
      state.userInfo = payload.userInfo
    },
    holdlevel (state, payload) {
      state.levelData = {...payload.data}
    }
  },
  actions: {}
});
